<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>计算我活了多少天</title>
	</head>
	<body>
		<div id="time"></div>
		<script>
			var now=new Date();
			var birthday=new Date("5 15 1990");
			//alert(birthday);
			var nows=now.getTime();
			//alert(nows);
			var birs=birthday.getTime();
			//alert(birs);
			var days=nows-birs;
			alert(Math.floor(days/1000/60/60/24));
		</script>
		
	</body>
</html>
